package homework0301;

import java.util.Objects;

public class ObjectDemo {
    public static void main(String[] args) {
        String s1=new String("Hi");
        String s2=new String("Hi");
        System.out.println(s1.equals(s2));

        StringBuilder b1=new StringBuilder("Hi");
        StringBuilder b2=new StringBuilder("Hi");
        System.out.println(b1.equals(b2));

        Point p1=new Point(100,200);
        Point p2=new Point(100,200);
        System.out.println(p1==p2);
        System.out.println(p1.equals(p2));
        System.out.println(p1.equals(b1));




       /* Point p = new Point(100,200);
        System.out.println(p);
        System.out.println(p.toString());

        */
    }
}
